﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PubSubLite.Messaging.MessageChannels
{
    /// <summary>
    /// Provides available messagechannels
    /// </summary>
    public interface IMessageChannelProvider
    {
        /// <summary>
        /// Available channels
        /// </summary>
        IEnumerable<IMessageChannel> Channels { get; }

        /// <summary>
        /// Returns a message channel by its id
        /// </summary>
        /// <param name="guid">Channel ID</param>
        /// <returns></returns>
        IMessageChannel GetChannelByID(Guid guid);

    }
}
